package cn.itsource.configuration;

import cn.itsource.config.WeChatConfig;
import cn.itsource.template.WeChatTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program fccar
 * @Author luoc
 * @Date 2024/09/04 13:50
 * @Version 1.0.0
 * @Description
 */

@Configuration
@EnableConfigurationProperties({WeChatConfig.class})
public class WechatLoginAutoConfiguration {

    @Bean
    public WeChatTemplate weChatTemplate(WeChatConfig weChatConfig) {
        return new WeChatTemplate(weChatConfig);
    }
}
